package org.spitter.core.service.impl;

import org.spitter.core.dao.EntityJpaDao;
import org.spitter.core.dao.SpitterDao;
import org.spitter.core.model.Spitter;
import org.spitter.core.service.SpitterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class SpitterServiceImpl extends BaseServiceImpl<Spitter> implements
		SpitterService {
	@Autowired
	@Qualifier("spitterDaoImpl")
	public void setEntityJpaDao(EntityJpaDao<Spitter> entityJpaDao) {
		this.entityJpaDao = entityJpaDao;
	}

	@Override
	public Spitter getByUsername(String username) {
		return ((SpitterDao)entityJpaDao).findByUsername(username);
	}
}
